package com.feihong.txgw.ui.mvp.view;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.NonNull;

/**
 * @Author wangziheng
 * @ProjectName txgw_app
 * @ClassName IBaseActivity
 * @package com.feihong.txgw.ui.mvp.view
 * @data 2018/5/2 11:34
 * @Describe
 * @Change
 */
public interface IBaseActivity extends IBaseView {

    boolean isUserLogin();

    /**
     * 跳往新的Activity
     *
     * @param clz 要跳往的Activity
     */
    void startNewActivity(@NonNull Class<?> clz);

    /**
     * 跳往新的Activity
     *
     * @param clz    要跳往的Activity
     * @param bundle 携带的bundle数据
     */
    void startNewActivity(@NonNull Class<?> clz, Bundle bundle);

    /**
     * 跳往新的Activity
     * @param clz 要跳转的Activity
     * @param bundle bundel数据
     * @param requestCode requestCode
     */
    void startNewActivityForResult(@NonNull Class<?> clz, Bundle bundle, int requestCode);

    void setResultActivity(int resultCode,Bundle bundle);

    void finishCurrentActivity();

    Activity getCurrentActivity();
}
